package com.ngc.mall.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ngc.mall.common.configure.mybatisPlus.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 *
 * 优惠券模板
 * @author: chenxiaolin
 * @date 2023/8/21 15:00
**/
@TableName("coupon_template")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CouponTemplateDomain extends BaseDomain {
    /**
     * 优惠券模板名称
     */
    private String name;

    /**
     * 优惠金额
     */
    private BigDecimal fullMoney;
    /**
     * 满减金额
     */
    private BigDecimal minus;

    /**
     * 折扣
     */
    private BigDecimal rate;

    /**
     * 优惠券类型 (1 满减券 2满减折扣券 3.无门槛券 ）
     */
    private Integer type;


    @TableLogic
    private Boolean deleted;
}
